Part Number Hot Search : 
NJ88C24 MN101 74HC245 LC573904 N2G181M AD835 HZS12A2 IRF54
Product Description
Full Text Search
 

To Download DS2482S-800 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 of 22 rev: 061804 note: some revisions of this device may incorporate deviations from published specifications known as errata. multiple revisions of any device may be simultaneously available through various sales channels. for information about device errata, click here: www.maxim-ic.com/errata . general description the ds2482-800 is an i2c? to 1-wire  bridge device that interfaces directly to standard (100khz max) or fast (400khz max) i2c masters to perform bi- directional protocol conversion between the i2c master and any downstream 1-wire slave devices. relative to any attached 1-wire slave device, the ds2482-800 is a 1-wire master. internal factory- trimmed timers relieve the system host processor from generating time-critical 1-wire waveforms, supporting both standard and overdrive 1-wire communication speeds. to optimize 1-wire waveform generation, the ds2482-800 performs slew-rate control on rising and falling 1-wire edges and has a programmable feature to mask the fast presence pulse edge that some 1-wire slave devices can generate. programmable strong pullup features support 1-wire power delivery to 1-wire devices such as eeproms and sensors. the ds2482-800 combines these features with eight independent 1- wire i/o channels. the i2c slave address assignment is controlled by three binary address inputs, resolving potential conflicts with other i2c slave devices in the system. applications  wireless base stations  central office switches  pbxs  rack-based servers  medical clinical diagnostic equipment typical operating circuit (i2c port) c ds2482 800 1-wire lines r t r p io0 io1 io2 io3 io4 io5 io6 io7 ad0 ad1 ad2 sda scl v cc 1-wire device #1 1-wire device #2 features  i2c host interface, supports 100khz and 400khz i2c communication speeds  1-wire master i/o with selectable active or passive 1-wire pullup  provides reset/presence, 8-bit, single-bit, and three-bit 1-wire i/o sequences  eight channels of independently operated 1-wire i/o  standard and overdrive 1-wire communication speeds  slew controlled 1-wire edges  selectable 1-wire slave presence pulse falling edge masking to control fast edges on the 1-wire line  supports low-impedance 1-wire strong pullup for eeproms, temp sensors, or other 1-wire slaves that have momentary high current modes  three address inputs for i2c address assignment  wide operating range: 2.9v to 5.5v, -40c to +85c  16-pin so package (150 mil) ordering information part temp range pin-package DS2482S-800 -40 to +85  c 16 so (150 mil ) DS2482S-800/t&r -40 to +85  c 16 so (150 mil ) pin configuration 1 2 3 4 5 6 7 8 16 15 14 13 12 11 10 9 io2 io1 io0 gnd io4 io5 io6 io7 io3 scl sda vdd nc ad2 ad1 ad0 ds2482-800 eight-channel 1-wire maste r www.maxim-ic.com i 2 c is a trademark of philips corp. purchase of i 2 c components from maxim integrated products, inc., or one of its sublicensed associated companies, conveys a license under the philips i 2 c patent rights to use these components in an i 2 c system, provided that the system conforms to the i 2 c standard specification as defined by philips. 1-wire is a registered trademark of dallas semiconductor.
ds2482-800: eight-channel 1-wire master 2 of 22 absolute maximum ratings voltage range on any pin relative to ground -0.5v, +6v maximum current into any pin  20ma operating temperature range -40c to +85c junction temperature +150c storage temperature range -55c to +125c soldering temperature see ipc/jedec j-std-020a stresses beyond those listed under ?absolute maximum ratings? may cause permanent damage to the device. these are stress rating s only, and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of t he specifications is not implied. exposure to the absolute maximum rating conditions for extended periods may affect device. electrical characteristics (v cc = 2.9v to 5.5v, t a = -40c to +85c.) parameter symbol conditions min typ max units 3.3v 2.9 3.3 3.7 supply voltage v cc 5v 4.5 5.0 5.5 v operating current i cc (note 1) 0.75 ma 3.3v (notes 2, 3) 1.9 1-wire input high v ih1 5v (notes 2, 3) 3.4 v 3.3v (notes 2, 3) 0.75 1-wire input low v il1 5v (notes 2, 3) 1.0 v 1-wire weak pullup resistor r wpu (note 4) 800 1675  1-wire output low v ol1 at 4ma load 0.4 v standard (notes 4, 5) 2.3 2.5 2.7 active pullup on time t apuot overdrive (notes 4, 5) 0.4 0.5 0.6 s v cc  3.2v, 1.5ma load 0.3 strong pullup voltage drop  v strpu v cc  5.2v, 3ma load 0.5 v standard (3.3v  5%) 1 4.2 3.3v pulldown slew rate (note 6) pd src overdrive (3.3v  5%) 5 22.1 v/s standard (5.0v  5%) 2 6.5 5v pulldown slew rate (note 6) pd src overdrive (5.0v  5%) 10 40 v/s standard (3.3v  5%) 0.8 4 3.3v pullup slew rate (note 6) pu src overdrive (3.3v  5%) 1.3 6 v/s standard (5.0v  5%) 2.7 20 5v pullup slew rate (note 6) pu src overdrive (5.0v  5%) 3.4 31 v/s power-on reset trip point v por 2.2 v 1-wire timing (note 16) see figures 3, 5, 6, and 7 standard 7.6 8 8.4 write 1/read low time t w1l overdrive 0.9 1 1.1 s standard 13.3 14 15 read sample time t msr overdrive 1.4 1.5 1.8 s standard 65.8 69.3 72.8 1-wire time slot t slot overdrive 9.9 10.5 11.0 s 3.3v to 0v (note 5) 0.6 2.6 fall time high-to-low at standard speed (note 6) 5.5v to 0v (note 5) 0.7 2.2 3.3v to 0v (note 5) 0.1 0.5 fall time high-to-low at overdrive speed (note 6) t f1 5.5v to 0v (note 5) 0.1 0.4 s
ds2482-800: eight-channel 1-wire master 3 of 22 parameter symbol conditions min typ max units standard 60 64 68 write 0 low time t w0l overdrive 7.1 7.5 7.9 s standard 5.0 5.3 5.6 write 0 recovery time t rec0 overdrive 2.8 3.0 3.2 s standard 570 600 630 reset low time t rstl overdrive 68.4 72 75.6 s standard 66.5 70 73.5 presence-detect sample time t msp overdrive 7.1 7.5 7.9 s standard 7.6 8 8.4 sampling for short and interrupt t si overdrive 0.7 0.75 0.8 s standard 554.8 584 613.2 reset high time t rsth overdrive 70.3 74 77.7 s presence pulse mask start t ppm1 (note 7) 9.5 10 10.5 s presence pulse mask stop t ppm2 (note 7) 57 60 63 s i2c-pins (note 8) see figure 10 v cc = 2.9v to 3.7v 0.25 v cc low level input voltage v il v cc = 4.5v to 5.5v -0.5 0.22 v cc v high level input voltage v ih 0.7 v cc v cc + 0.5v v hysteresis of schmitt trigger inputs v hys 0.05 v cc v low level output voltage at 3ma sink current v ol 0.4 v output fall time from v ihmin to v ilmax with a bus capacitance from 10pf to 400pf t of 60 250 ns pulse width of spikes that are suppressed by the input filter t sp sda and scl pins only 50 ns input current each i/o pin with an input voltage between 0.1v ccmax and 0.9v ccmax i i (notes 9, 10) -10 10 a input capacitance c i (note 9) 10 pf scl clock frequency f scl 0 400 khz hold time (repeated) start condition. after this period, the first clock pulse is generated. t hd:sta 0.6 s low period of the scl clock t low 1.3 s high period of the scl clock t high 0.6 s setup time for a repeated start condition t su:sta 0.6 s data hold time t hd:dat (notes 11, 12) 0.9 s data setup time t su:dat (note 13) 250 ns setup time for stop condition t su:sto 0.6 s bus free time between a stop and start condition t buf 1.3 s capacitive load for each bus line c b (note 14) 400 pf oscillator warm-up time t oscwup (note 15) 100 s
ds2482-800: eight-channel 1-wire master 4 of 22 pin description note 1: operating current with 1-wire write byte sequence followed by continuous read of status register at 400khz in overdrive. note 2: with standard speed the total capacitive load of the 1-wire bus should not exceed 1nf, otherwise the passive pullup on threshold v il1 may not be reached in the available time. with overdrive speed the capacitive load on the 1-wire bus must not exceed 300pf. note 3: active pullup guaranteed to turn on between v il1max and v ih1min . note 4: active or resistive pullup choice is configurable. note 5: fall time high to low (t f1 ) is derived from pd src, referenced from 0.9 v cc to 0.1 v cc . note 6: these values apply at full load, i. e., 1nf at standard speed and 0.3nf at overdrive speed. for reduced load, the pulldown slew rate is slightly faster. note 7: presence pulse masking only applies to standard speed. note 8: all i2c timing values are referred to v ihmin and v ilmax levels. note 9: applies to sda, scl, and ad0, ad1, ad2. note 10: i/o pins of the ds2482 do not obstruct the sda and scl lines if v cc is switched off. note 11: the ds2482 provides a hold time of at least 300ns for the sda signal (referred to the v ihmin of the scl signal) to bridge the undefined region of the falling edge of scl. note 12: the maximum t hd : dat has only to be met if the device does not stretch the low period (t low ) of the scl signal. note 13: a fast-mode i2c-bus device can be used in a standard-mode i2c-bus system, but the requirement t su : dat  ? 250ns must then be met. this is automatically the case if the device does not stretch the low period of the scl signal. if such a device does stretch the low period of the scl signal, it must output the next data bit to the sda line tr max + t su : dat = 1000 + 250 = 1250ns (according to the standard-mode i2c-bus specification) before the scl line is released. note 14: c b = total capacitance of one bus line in pf. if mixed with hs-mode devices, faster fall-times according to i2c-bus specification v2.1 are allowed. note 15: i2c communication should not take place for the max t oscwup time following a power-on reset. note 16: except for t f1 , all 1-wire timing specifications and t apuot are derived from the same timing circuit. therefore, if one of these parameters is found to be off the typical value, it is safe to assume that all of these parameters deviate from their typical value in the same direction and by the same degree. pin name function 1 io3 io driver for 1-wire line #3 2 scl i2c serial clock input; must be tied to vcc through a pullup resistor. 3 sda i2c serial data input/output; must be tied to vcc through a pullup resistor. 4 vcc power supply input 5 nc not connected 6 ad2 7 ad1 8 ad0 i2c address inputs; must be tied to vcc or gnd. these inputs determine the i2c slave address of the device, see figure 9. 9 io7 io driver for 1-wire line #7 10 io6 io driver for 1-wire line #6 11 io5 io driver for 1-wire line #5 12 io4 io driver for 1-wire line #4 13 gnd ground reference 14 io0 io driver for 1-wire line #0 15 io1 io driver for 1-wire line #1 16 io2 io driver for 1-wire line #2
ds2482-800: eight-channel 1-wire master 5 of 22 figure 1. block diagram i2c interface controller sda scl config register i/o controller status register line xcvr channel select line xcvr line xcvr line xcvr line xcvr line xcvr line xcvr line xcvr a d0 a d1 a d2 io0 io1 io2 io3 io4 io5 io6 io7 read data register t-time osc detailed description the ds2482-800 is a self-timed 8-channel 1-wire master, which supports advanced 1-wire waveform features including standard and overdrive speeds, active pullup, strong pullup for power delivery, and presence pulse masking. once supplied with command and data, the i/o controller of the ds2482 performs time-critical 1-wire communication functions such as reset/presence detect cycle, read-byte, write-byte, single-bit r/w and triplet for rom search, without requiring interaction with the host processor. the host obtains feedback (completion of a 1- wire function, presence pulse, 1-wire short, search direction taken) through the status register and data through the read data register. the ds2482 communicates with a host processor through its i2c bus interface in standard- mode or in fast-mode. the logic state of three address pins (2 address pins with the 1-channel version) determines the i2c slave address of the ds2482, allowing up to 8 devices operating on the same bus segment without requiring a hub. device registers the ds2482 has four registers that the i2c host can read: channel selection, configuration, status, and read data. these registers are addressed by a read pointer. the position of the read pointer, i.e., the register that the host will read in a subsequent read access, is defined by the instruction that the has ds2482 executed last. the host has read and write access to the channel selection and configuration registers to select one of several 1- wire channels and to enable certain 1-wire features.
ds2482-800: eight-channel 1-wire master 6 of 22 channel selection register the content of the channel selection register specifies which of the channels is selected and will be the target of subsequent 1-wire communication commands. the ds2482-800 supports eight 1-wire communication channels io0 to io7. only one of these channels can be active/selected at any time. once selected, a 1-wire channel remains selected until a different channel is selected through the channel select command or by initiating a device reset. after a device reset (power-up cycle or initiated by the device reset command) the io0 channel is selected. configuration register the ds2482 supports allows four 1-wire features that are enabled or selected through the configuration register. these features are:  active pullup (apu)  presence pulse masking (ppm)  strong pullup (spu)  1-wire speed (1ws) these features can be selected in any combination. they apply equally to all 1-wire channels. while apu, ppm and 1ws maintain their state, spu returns to its inactive state as soon as the strong pullup has ended. configuration register bit assignment bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 1ws spu ppm apu 1ws spu ppm apu after a device reset (power-up cycle or initiated by the device reset command) the configuration register reads 00h. when writing to the configuration register, the new data is accepted only if the upper nibble (bits 7 to 4) is the one's complement of the lower nibble (bits 3 to 0). when read, the upper nibble is always 0h. active pullup (apu) the apu bit controls whether an active pullup (controlled slew-rate transistor) or a passive pullup (r wpu resistor) will be used to drive a 1-wire line from low to high. when apu = 0, active pullup is disabled (resistor mode). active pullup should be selected if the 1-wire line has a substantial length (30 meters or more) or if there is a large number (~20 or more) of devices connected to a 1-wire line. the active pullup does not apply to the rising edge of a presence pulse or a recovery after a short on the 1-wire line. the circuit that controls rising edges (figure 2) operates as follows: at t1 the pulldown (from ds2482 or 1-wire slave) ends. from this point on the 1-wire bus is pulled high through r wpu internal to the ds2482. v cc and the capacitive load of the 1-wire line determine the slope. in case that active pullup is disabled (apu = 0), the resistive pullup continues, as represented by the solid line. with active pullup enabled (apu = 1), when at t2 the voltage has reached a level between v il1max and v ih1min , the ds2482 actively pulls the 1-wire line high applying a controlled slew rate, as represented by the dashed line. the active pullup continues until t apuot is expired at t3. from that time on the resistive pullup will continue. figure 2. rising edge pullup v cc 0v 1-wire bus is dischar g ed v il1max v ih1min t apuot t 1 t 2 t 3 a pu = 1 a pu = 0
ds2482-800: eight-channel 1-wire master 7 of 22 presence pulse masking (ppm) the ppm bit controls whether the ds2482 will mask the leading edge (falling) of presence pulses. when ppm = 0, masking is disabled. presence pulse masking applies only to standard 1-wire speed (1ws = 0); this bit has no function if 1ws = 1 (overdrive speed). presence pulse masking can improve the performance of large 1-wire networks since it prevents the fast falling edge of a presence pulse generated by a 1-wire slave device from propagating through the network and getting reflected. reflections can cause glitches in the network that in turn may cause slave devices to lose synchronization with the 1-wire master. figure 3 shows the timing references for the ppm. if enabled (ppm = 1), the ds2482 begins pulling the 1-wire line low at t ppm1 after the reset low time t rstl is expired. the pulldown ends at t ppm2 , at which a 1-wire slave, if present, will be pulling the 1-wire line low. the falling edge of the presence pulse mask is slew rate controlled. figure 3. presence pulse masking pull-up ds2482 pull-down 1-w slave pull-down ds2482 pull-down with ppm = 1; standard speed only t rstl t rsth reset pulse presence pulse v cc 0v t ppm1 t ppm2 apu con- trolled edge resistive pull-up strong pullup (spu) the spu bit controls whether the ds2482 applies a low-impedance pullup to v cc on the 1-wire line after the last bit of either a 1-wire write byte command or after a 1-wire single bit command has completed. the strong pullup feature is commonly used with 1-wire eeprom devices when copying scratchpad data to the main memory or when performing a sha-1 computation, and with parasitically powered temperature sensors or a-to-d converters. the respective device data sheets specify the location in the communications protocol after which the strong pullup should be applied. the spu bit in the configuration register of the ds2482 must be set immediately prior to issuing the command that puts the 1-wire device into the state where it needs the extra power. if spu is 1, the ds2482 applies active pullup to the rising edge of the time slot in which the strong pullup starts, regardless of the apu bit setting. however, in contrast to setting apu = 1 for active pullup, the low-impedance pullup will not end after t apuot is expired. instead, as shown in figure 4, the low-impedance pullup remains active until: a) the next 1-wire communication command (the typical case), b) by writing to the configuration register with the spu bit being 0 (alternative), or c) by issuing the device reset command. additionally, when the pullup ends, the spu bit is automatically reset to 0. using the strong pullup does not change the state of the apu bit in the configuration register.
ds2482-800: eight-channel 1-wire master 8 of 22 figure 4. low-impedance pullup timing v cc 0v write 1 write 0 edges with active pull-up pull-up ds2482 pull-down ds2482 low impedance pull-up next time slot t slot last bit of 1-wire write byte or 1-wire single bit function 1-wire speed (1ws) the 1ws bit determines the timing of any 1-wire communication generated by the ds2482. all 1-wire slave devices support standard speed (1ws = 0), where the transfer of a single bit (t slot in figure 4) is completed within 65s. many 1-wire device can also communicate at a higher data rate, called overdrive speed. to change from standard to overdrive speed, a 1-wire device needs to receive an overdrive skip rom or overdrive match rom command, as explained in the device data sheets. the change in speed occurs immediately after the 1-wire device has received the speed-changing command code. the ds2482 must take part in this speed change to stay synchronized. this is accomplished by writing to the configuration register with the 1ws bit being 1 immediately after the 1-wire byte command that changes the speed of a 1-wire device. writing to the configuration register with the 1ws bit being 0 followed by a 1-wire reset command changes the ds2482 and any 1-wire devices on the active 1-wire line back to standard speed. status register the read-only status register is the general means for the ds2482 to report bit-type data from the 1-wire side, 1- wire busy status and its own reset status to the host processor. all 1-wire communication commands and the device reset command position the read pointer at the status register for the host processor to read with minimal protocol overhead. status information is updated during the execution of certain commands only. details are given in the description of the various status bits below. status register bit assignment bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 dir tsb sbr rst ll sd ppd 1wb 1-wire busy (1wb) the 1wb bit reports to the host processor whether the 1-wire line is busy. during 1-wire communication 1wb is 1; once the command is completed, 1wb returns to its default 0. details on when 1wb changes state and for how long it remains at 1 are found in the function commands section. presence pulse detect (ppd) the ppd bit is updated with every 1-wire reset command. if the ds2482 detects a presence pulse from a 1-wire device at t msp during the presence detect cycle, the ppd bit will be set to 1. this bit will return to its default 0 if there is no presence pulse or if the 1-wire line is shorted during a subsequent 1-wire reset command. short detected (sd) the sd bit is updated with every 1-wire reset command. if the ds2482 detects a logic 0 on the 1-wire line at t si during the presence detect cycle, the sd bit will be set to 1. this bit will return to its default 0 with a subsequent 1- wire reset command provided that the short has been removed. if sd is 1, ppd will be 0. the ds2482 cannot distinguish between a short and a ds1994 or ds2404 signaling a 1-wire interrupt. for this reason, if a ds2404/ds1994 is used in the application, the interrupt function must be disabled. the interrupt signaling is explained in the respective device data sheets.
ds2482-800: eight-channel 1-wire master 9 of 22 logic level (ll) the ll bit reports the logic state of the active 1-wire line without initiating any 1-wire communication. the 1-wire line is sampled for this purpose every time the status register is read. the sampling and updating of the ll bit takes place when the host processor has addressed the ds2482 in read mode (during the acknowledge cycle), provided that the read pointer is positioned at the status register. device reset (rst) if the rst bit is 1, the ds2482 has performed an internal reset cycle, either caused by a power-on reset or from executing the device reset command. the rst bit is cleared automatically when the ds2482 executes a write configuration command to restore the selection of the desired 1-wire features. single bit result (sbr) the sbr bit reports the logic state of the active 1-wire line sampled at t msr of a 1-wire single bit command or the first bit of a 1-wire triplet command. the power-on default of sbr is 0. if the 1-wire single bit command sends a 0-bit, sbr should be 0. with a 1-wire triplet command, sbr could be 0 as well as 1, depending on the response of the 1-wire devices connected. the same result applies to a 1-wire single bit command that sends a 1-bit. triplet second bit (tsb) the tsb bit reports the logic state of the active 1-wire line sampled at t msr of the second bit of a 1-wire triplet command. the power-on default of tsb is 0. this bit is updated only with a 1-wire triplet command and has no function with other commands. branch direction taken (dir) whenever a 1-write triplet command is executed, this bit reports to the host processor the search direction that was chosen by the 3rd bit of the triplet. the power-on default of dir is 0. this bit is updated only with a 1-wire triplet command and has no function with other commands. for additional information see the description of the 1- wire triplet command and the dallas application note 187, "1-wire search algorithm". function commands the ds2482 understands 9 function commands, which fall into four categories: device control, i2c communication, 1-wire setup and 1-wire communication. the feedback path to the host is controlled by a read pointer, which is set automatically by each function command for the host to efficiently access relevant information. the host processor sends these commands and applicable parameters as strings of one or two bytes using the i2c interface. the i2c protocol requires that each byte be acknowledged by the receiving party to confirm acceptance or not be acknowledged to indicate an error condition (invalid code or parameter) or to end the communication. details of the i2c protocol including acknowledge are found in the i2c interface description of this document. device reset command code f0h command parameter none description performs a global reset of device state machine logic, which in turn selects io0 as the active 1-wire channel. terminates any ongoing 1-wire communication. typical use device initialization after power-up; re-initialization (reset) as desired. restriction none (can be executed at any time) error response none command duration maximum 525ns, counted from falling scl edge of the command code acknowledge bit. 1-wire activity ends maximum 262.5ns after the falling scl edge of the command code acknowledge bit. read pointer position status register (for busy polling) status bits affected rst set to 1, 1wb, ppd, sd, sbr, tsb, dir set to 0 configuration bits affected 1ws, apu, ppm, spu set to 0
ds2482-800: eight-channel 1-wire master 10 of 22 set read pointer command code e1h command parameter pointer code description sets the read pointer to the specified register. overwrites the read pointer position of any 1-wire communication command in progress. typical use to prepare reading the result from a 1-wire byte command; random read access of registers. restriction none (can be executed at any time) error response if the pointer code is not valid, the pointer code will not be acknowledged and the command will be ignored. command duration none; the read pointer is updated on the rising scl edge of the pointer code acknowledge bit. 1-wire activity not affected read pointer position as specified by the pointer code status bits affected none configuration bits affected none valid pointer codes write configuration command code d2h command parameter configuration byte description writes a new configuration byte. the new settings take effect immediately. note: when writing to the configuration register, the new data is accepted only if the upper nibble (bits 7 to 4) is the one's complement of the lower nibble (bits 3 to 0). when read, the upper nibble is always 0h. typical use defining the features for subsequent 1-wire communication. restriction 1-wire activity must have ended before the ds2482 can process this command. error response command code and parameter will not be acknowledged if 1wb = 1 at the time the command code is received and the command will be ignored. command duration none; the configuration register is updated on the rising scl edge of the configuration byte acknowledge bit. 1-wire activity none read pointer position configuration register (to verify write) status bits affected rst set to 0 configuration bits affected 1ws, spu, ppm, apu updated register selection code status register f0h read data register e1h channel selection register d2h configuration register c3h
ds2482-800: eight-channel 1-wire master 11 of 22 channel select command code c3h command parameter selection code description sets the 1-wire io channel for subsequent 1-wire communication commands. note: the selection code read back is different from the code written. see the table below for the respective values. typical use selecting a 1-wire io channel other that io0; randomly selecting one of the available 1-wire io channels. restriction 1-wire activity must have ended before the ds2482 can process this command. error response command code and parameter will not be acknowledged if 1wb = 1 at the time the command code is received and the command will be ignored. if the selection code is not valid, the selection code will not be acknowledged and the command will be ignored. command duration none; the channel selection register is updated on the rising scl edge of the selection code acknowledge bit. 1-wire activity none read pointer position channel selection register (to verify write) status bits affected none configuration bits affected none valid channel selection codes channel selection code (to be written) code (read back) channel io0 (default) f0h b8h channel io1 e1h b1h channel io2 d2h aah channel io3 c3h a3h channel io4 b4h 9ch channel io5 a5h 95h channel io6 96h 8eh channel io7 87h 87h figure 5. 1-wire reset/presence detect cycle pullup ds2482 pulldown 1-w slave pulldown t rstl t rsth reset pulse presence/short detect v cc v ih1 v il1 0 v t f1 t si t msp for presence-pulse masking and pullup details see figure 3.
ds2482-800: eight-channel 1-wire master 12 of 22 1-wire reset command code b4h command parameter none description generates a 1-wire reset/presence detect cycle (figure 5) at the selected io channel. the state of the 1-wire line is sampled at t si and t msp and the result is reported to the host processor through the status register, bits ppd and sd. typical use to initiate or end any 1-wire communication sequence. restriction 1-wire activity must have ended before the ds2482 can process this command. error response command code will not be acknowledged if 1wb = 1 at the time the command code is received and the command will be ignored. command duration t rstl + t rsth + maximum 262.5ns, counted from the falling scl edge of the command code acknowledge bit. 1-wire activity begins maximum 262.5ns after the falling scl edge of the command code acknowledge bit. read pointer position status register (for busy polling) status bits affected 1wb (set to 1 for t rstl + t rsth ), ppd is updated at t rstl + t msp , sd is updated at t rstl + t si configuration bits affected 1ws, ppm, apu apply 1-wire single bit command code 87h command parameter bit byte description generates a single 1-wire time slot with a bit value ?v? as specified by the bit byte at the selected 1-wire io channel. a ?v? value of 0b will generate a write-zero time slot (figure 6), a value of 1b will generate a write one slot, which also functions as a read data time slot (figure 7). in either case the logic level at the 1-wire line is tested at t msr and sbr is updated. typical use to perform single bit writes or reads on a 1-wire io channel when single bit communication is necessary (the exception). restriction 1-wire activity must have ended before the ds2482 can process this command. error response command code and bit byte will not be acknowledged if 1wb = 1 at the time the command code is received and the command will be ignored. command duration t slot + maximum 262.5ns, counted from the falling scl edge of the first bit (ms bit) of the bit byte. 1-wire activity begins maximum 262.5ns after the falling scl edge of the ms bit of the bit byte. read pointer position status register (for busy polling and data reading) status bits affected 1wb (set to 1 for t slot ) sbr is updated at t msr dir (may change its state) configuration bits affected 1ws, apu, spu apply bit allocation in the bit byte bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 v x x x x x x x x = don?t care
ds2482-800: eight-channel 1-wire master 13 of 22 figure 6. write-0 time slot pullup (see fig. 2) ds2482 pulldown t rec0 v cc v ih1 v il1 0 v t f1 t slot t w0l t msr figure 7. write-1 and read-data time slot pullup (see fig. 2) ds2482 pulldown 1-w slave pulldown v cc v ih1 v il1 0 v t f1 t slot t w1l t msr note on figure 7 : depending on its internal state, a 1-wire slave device will transmit data to its master (e.g., the ds2482). when responding with a 0, a 1-wire slave will start pulling the line low during t w1l ; its internal timing generator determines when this pulldown ends and the voltage starts rising again. when responding with a 1, a 1- wire slave will not hold the line low at all, and the voltage starts rising as soon as t w1l is over. 1-wire device data sheets use the term t rl instead of t w1l to describe a read-data time slot. technically, t rl and t w1l have identical specifications and cannot be distinguished from each other. 1-wire write byte command code a5h command parameter data byte description writes single data byte to selected 1-wire io channel. typical use to write commands or data to a 1-wire io channel; equivalent to executing eight 1-wire single bit commands, but faster due to less i2c traffic. restriction 1-wire activity must have ended before the ds2482 can process this command. error response command code and data byte will not be acknowledged if 1wb = 1 at the time the command code is received and the command will be ignored. command duration 8 t slot + maximum 262.5ns, counted from falling edge of the last bit (ls bit) of the data byte. 1-wire activity begins maximum 262.5ns after falling scl edge of the ls bit of the data byte (i.e., before the data byte acknowledge). note : the bit order on the i2c bus and the 1-wire line is different. (1-wire: ls-bit first; i2c: ms-bit first) therefore, 1-wire activity cannot begin before the ds2482 has received the full data byte. read pointer position status register (for busy polling) status bits affected 1wb (set to 1 for 8 t slot ) configuration bits affected 1ws, spu, apu apply
ds2482-800: eight-channel 1-wire master 14 of 22 1-wire read byte command code 96h command parameter none description generates eight read data time slots on the selected 1-wire io channel and stores result in the read data register. typical use to read data from a 1-wire io channel; equivalent to executing eight 1- wire single bit commands with v = 1 (write 1 time slot), but faster due to less i2c traffic. restriction 1-wire activity must have ended before the ds2482 can process this command. error response command code will not be acknowledged if 1wb = 1 at the time the command code is received and the command will be ignored. command duration 8 t slot + maximum 262.5ns, counted from the falling scl edge of the command code acknowledge bit. 1-wire activity begins maximum 262.5ns after the falling scl edge of the command code acknowledge bit. read pointer position status register (for busy polling) note : to read the data byte received from the 1-wire io channel, issue the set read pointer command and select the read data register. then access the ds2482 in read mode. status bits affected 1wb (set to 1 for 8 t slot ) configuration bits affected 1ws, apu apply 1-wire triplet command code 78h command parameter direction byte description generates three times slots, two read-time slots and one-write time slot, at the selected 1-wire io channel. the type of write-time slot depends on the result of the read-time slots and the direction byte. the direction byte determines the type of write-time slot if both read-time slots are 0 (a typical case). in this case the ds2482 will generate a write-1 time slot if v = 1 and a write-0 time slot if v = 0. if the read-time slots are 0 and 1, there will follow a write 0 time slot. if the read-time slots are 1 and 0, there will follow a write 1 time slot. if the read-time slots are both 1 (error case), the subsequent write time slot will be a write 1. typical use to perform a 1-wire search rom sequence; a full sequence requires this command to be executed 64 times to identify and address one device. restriction 1-wire activity must have ended before the ds2482 can process this command. error response command code and direction byte will not be acknowledged if 1wb = 1 at the time the command code is received and the command will be ignored. command duration 3 t slot + maximum 262.5ns, counted from the falling scl edge of the first bit (ms bit) of the direction byte. 1-wire activity begins maximum 262.5ns after the falling scl edge of the ms bit of the direction byte. read pointer position status register (for busy polling) status bits affected 1wb (set to 1 for 3 t slot ) sbr is updated at the first t msr tsb and dir are updated at the second t msr (i.e., at t slot + t msr ) configuration bits affected 1ws, apu apply
ds2482-800: eight-channel 1-wire master 15 of 22 bit allocation in the direction byte bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 v x x x x x x x x = don?t care i2c interface general characteristics the i2c bus uses a data line (sda) plus a clock signal (scl) for communication. both sda and scl are bidirectional lines, connected to a positive supply voltage through a pullup resistor. when there is no communication, both lines are high. the output stages of devices connected to the bus must have an open-drain or open-collector to perform the wired-and function. data on the i2c bus can be transferred at rates of up to 100kbps in the standard-mode, up to 400kbps in the fast-mode. the ds2482 works in both modes. a device that sends data on the bus is defined as a transmitter, and a device receiving data as a receiver. the device that controls the communication is called a ?master.? the devices that are controlled by the master are ?slaves.? to be individually accessed, each device must have a slave address that does not conflict with other devices on the bus. data transfers may be initiated only when the bus is not busy. the master generates the serial clock (scl), controls the bus access, generates the start and stop conditions, and determines the number of data bytes transferred between start and stop (figure 8). data is transferred in bytes with the most significant bit being transmitted first. after each byte follows an acknowledge bit to allow synchronization between master and slave. figure 8. i2c protocol overview scl sda 12 678 a ck 9 9 12 8 ms-bit r/ w slave address ack bit acknowledgment from receive r ack bit start condition a ck repeated if more bytes are transferred stop condition repeated start condition idle slave address the slave address to which the ds2482 responds is shown in figure 9. the logic states at the address pins ad0, ad1 and ad2 determine the value of the address bits a0, a1, and a2. the address pins allow the device to respond to one of eight possible slave addresses. the slave address is part of the slave-address/control byte. the last bit of the slave-address/control byte (r/ w ) defines the data direction. when set to a 0, subsequent data will flow from master to slave (write access); when set to a 1, data will flow from slave to master (read access).
ds2482-800: eight-channel 1-wire master 16 of 22 figure 9. ds2482 slave address a6 a5 a4 a3 a2 a1 a0 0110 a d2 a d1 a d0 r/w 7-bit slave address most signi- ficant bit determines read or write ad2, ad1, ad0 pin states i2c definitions the following terminology is commonly used to describe i2c data transfers. the timing references are defined in figure 10. bus idle or not busy: both, sda and scl, are inactive and in their logic high states. start condition: to initiate communication with a slave, the master has to generate a start condition. a start condition is defined as a change in state of sda from high to low while scl remains high. stop condition: to end communication with a slave, the master has to generate a stop condition. a stop condition is defined as a change in state of sda from low to high while scl remains high. repeated start condition: repeated starts are commonly used for read accesses to select a specific data source or address to read from. the master can use a repeated start condition at the end of a data transfer to immediately initiate a new data transfer following the current one. a repeated start condition is generated the same way as a normal start condition, but without leaving the bus idle after a stop condition. data valid: with the exception of the start and stop condition, transitions of sda may occur only during the low state of scl. the data on sda must remain valid and unchanged during the entire high pulse of scl plus the required setup and hold time (t hd:dat after the falling edge of scl and t su:dat before the rising edge of scl, see figure 10). there is one clock pulse per bit of data. data is shifted into the receiving device during the rising edge of the scl. when finished with writing, the master must release the sda line for a sufficient amount of setup time (minimum t su:dat + t r in figure 10) before the next rising edge of scl to start reading. the slave shifts out each data bit on sda at the falling edge of the previous scl pulse and the data bit is valid at the rising edge of the current scl pulse. the master generates all scl clock pulses, including those needed to read from a slave. acknowledge: usually, a receiving device, when addressed, is obliged to generate an acknowledge after the receipt of each byte. the master must generate a clock pulse that is associated with this acknowledge bit. a device that acknowledges must pull sda low during the acknowledge clock pulse in such a way that sda is stable low during the high period of the acknowledge-related clock pulse plus the required setup and hold time (t hd:dat after the falling edge of scl and t su:dat before the rising edge of scl). not acknowledged by slave: a slave device may be unable to receive or transmit data, e.g., because it is busy performing some real-time function. in this case the slave device will not acknowledge its slave address and leave the sda line high. a slave device that is ready to communicate will acknowledge at least its slave address. however, some time later the slave may refuse to accept data, e.g., because of an invalid command code or parameter. in this case the slave device will not acknowledge any of the bytes that it refuses and will leave sda high. in either case, after a slave has failed to acknowledge, the master first needs to generate a repeated start condition or a stop condition followed by a start condition to begin a new data transfer.
ds2482-800: eight-channel 1-wire master 17 of 22 not acknowledged by master: at some time when receiving data, the master must signal an end of data to the slave device. to achieve this, the master does not acknowledge the last byte that it has received from the slave. in response, the slave releases sda, allowing the master to generate the stop condition. figure 10. i2c timing diagram scl sda stop start t buf t hd:sta t low t r t hd:dat t high t su:dat repeated start t su:sta t f t hd:sta t sp t su:sto spike suppression note: timing is referenced to v ilmax and v ihmin . writing to the ds2482 to write to the ds2482, the master must access the device in write mode, i.e., the slave address must be sent with the direction bit set to 0. the next byte to be sent is a command code, which, depending on the command, may be followed by a command parameter. the ds2482 will acknowledge valid command codes and expected/valid command parameters. additional bytes or invalid command parameters will never be acknowledged. reading from the ds2482 to read from the ds2482, the master must access the device in read mode, i. e., the slave address must be sent with the direction bit set to 1. the read pointer determines the register that the master will read from. the master may continue reading the same register over and over again, without having to re-address the device, e. g., to watch the 1wb changing from 1 to 0. to read from a different register, the master must issue the set read pointer command and then access the ds2482 again in read mode. i2c communication?legend symbol description symbol description s start condition drst command "device reset", f0h ad,0 select ds2482 for write access wcfg command "write configuration", d2h ad,1 select ds2482 for read access chsl command "channel select", c3h sr repeated start condition srp command "set read pointer", e1h p stop condition 1wrs command "1-wire reset", b4h a acknowledged 1wwb command "1-wire write byte", a5h a\ not acknowledged 1wrb command "1-wire read byte", 96h (idle) bus not busy 1wsb command "1-wire single bit", 87h transfer of 1 byte 1wt command "1-wire triplet", 78h
ds2482-800: eight-channel 1-wire master 18 of 22 data direction codes master-to-slave slave-to-master i2c communication examples device reset, e.g., after power-up s ad,0 a drst a sr ad,1 a a\ p this example includes an optional read access to verify the success of the command. write configuration, e.g., before starting 1-wire activity power-up case a: 1-wire idle (1wb = 0) s ad,0 a wcfg a a sr ad,1 a a\ p this example includes an optional read access to verify the success of the command. case b: 1-wire busy (1wb = 1) s ad,0 a wcfg a\ p the master should stop and restart as soon as the ds2482 does not acknowledge the command code. channel select, e.g., to select another 1-wire channel case a: 1-wire idle (1wb = 0) s ad,0 a chsl a e1h a sr ad,1 a a\ p e1h is the valid channel selection code for io1. this example includes an optional read access to verify the success of the command. case b: 1-wire idle (1wb = 0), invalid channel selection code s ad,0 a chsl a e5h a\ p e5h is an invalid channel selection code. case c: 1-wire busy (1wb = 1) s ad,0 a chsl a\ p the master should stop and restart as soon as the ds2482 does not acknowledge the command code. set read pointer, e.g., to read from another register case a: valid read pointer code s ad,0 a srp a c3h a p c3h is the valid read pointer code for the configuration register. case b: invalid read pointer code s ad,0 a srp a e5h a\ p e5h is an invalid read pointer code.
ds2482-800: eight-channel 1-wire master 19 of 22 1-wire reset, e.g., to begin or end 1-wire communication case a: 1-wire idle (1wb = 0), no busy polling to read the result s ad,0 a 1wrs a p (idle) s ad,1 a a\ p in the first cycle, the master sends the command; then the master waits (idle) for the 1-wire reset to complete. in the second cycle the ds2482 is accessed to read the result of the 1-wire reset from the status register. case b: 1-wire idle (1wb = 0), busy polling until the 1-wire command is completed, then read the result s ad,0 a 1wrs a sr ad,1 a a a\ p case c: 1-wire busy (1wb = 1) s ad,0 a 1wrs a\ p the master should stop and restart as soon as the ds2482 does not acknowledge the command code. 1-wire write byte, e.g., to send a command code to a 1-wire io channel case a: 1-wire idle (1wb = 0), no busy polling s ad,0 a 1wwb a 33h a p (idle) 33h is the valid 1-wire rom function command for read rom. the idle time is needed for the 1-wire function to complete. there is no data read back from the 1-wire line with this command. case b: 1-wire idle (1wb = 0), busy polling until the 1-wire command is completed. s ad,0 a 1wwb a 33h a sr ad,1 a a a\ p when 1wb has changed from 1 to 0, the 1-wire write byte command is completed. case c: 1-wire busy (1wb = 1) s ad,0 a 1wwb a\ p the master should stop and restart as soon as the ds2482 does not acknowledge the command code. 1-wire read byte, e. g., to read a byte from a 1-wire io channel case a: 1-wire idle (1wb = 0), no busy polling, set read pointer after idle time. s ad,0 a 1wrb a p (idle) s ad,0 a srp a e1h a sr ad,1 a a\ p the idle time is needed for the 1-wire function to complete. then set the read pointer to the read data register (code e1h) and access the device again to read the data byte that was obtained from the 1-wire io channel. case b: 1-wire idle (1wb = 0), no busy polling, set read pointer before idle time. s ad,0 a 1wrb a sr ad,0 a srp a e1h a p (idle) s ad,1 a a\ p the read pointer is set to the read data register (code e1h) while the 1-wire read byte command is still in progress. then, after the 1-wire function is completed, the device is accessed to read the data byte that was obtained from the 1-wire io channel. repeat until the 1wb bit has changed to 0 repeat until the 1wb bit has changed to 0
ds2482-800: eight-channel 1-wire master 20 of 22 case c: 1-wire idle (1wb = 0), busy polling until the 1-wire command is completed. s ad,0 a 1wrb a sr ad,1 a a a\ sr ad,0 a srp a e1h a sr ad,1 a a\ p poll the status register until the 1wb bit has changed from 1 to 0. then set the read pointer to the read data register (code e1h) and access the device again to read the data byte that was obtained from the 1-wire io channel. case d: 1-wire busy (1wb = 1) s ad,0 a 1wrb a\ p the master should stop and restart as soon as the ds2482 does not acknowledge the command code. 1-wire single bit, e. g., to generate a single time slot on a 1-wire io channel case a: 1-wire idle (1wb = 0), no busy polling s ad,0 a 1wsb a a p (idle) s ad,1 a a\ p the idle time is needed for the 1-wire function to complete. then access the device in read mode to get the result from the 1-wire single-bit command. case b: 1-wire idle (1wb = 0), busy polling until the 1-wire command is completed. s ad,0 a 1wsb a a sr ad,1 a a a\ p when 1wb has changed from 1 to 0, the status register holds the valid result of the 1-wire single bit command. case c: 1-wire busy (1wb = 1) s ad,0 a 1wsb a\ p the master should stop and restart as soon as the ds2482 does not acknowledge the command code. 1-wire triplet, e.g., to perform a search rom function on a 1-wire io channel case a: 1-wire idle (1wb = 0), no busy polling s ad,0 a 1wt a a p (idle) s ad,1 a a\ p the idle time is needed for the 1-wire function to complete. then access the device in read mode to get the result from the 1-wire triplet command. case b: 1-wire idle (1wb = 0), busy polling until the 1-wire command is completed. s ad,0 a 1wt a a sr ad,1 a a a\ p when 1wb has changed from 1 to 0, the status register holds the valid result of the 1-wire triplet command. repeat until the 1wb bit has changed to 0 repeat until the 1wb bit has changed to 0 repeat until the 1wb bit has changed to 0
ds2482-800: eight-channel 1-wire master 21 of 22 case c: 1-wire busy (1wb = 1) s ad,0 a 1wt a\ p the master should stop and restart as soon as the ds2482 does not acknowledge the command code. figure 11. application schematic (i2c port) c ds2482-800 ds2482-800 1-wire device #1 1-wire device #2 1-wire lines *r t * r t line termination resistor, typically 100  r p i2c pull-up resistor, see application information for r p sizing. *r t *r p io0 io1 io2 io3 io4 io5 io6 io7 ad0 ad1 ad2 sda scl v cc sda scl ad0 ad1 ad2 io0 io1 io2 io3 io4 io5 io6 io7 v cc v cc application information sda and scl pullup resistors sda is an open-drain output on the ds2482 that requires a pullup resistor to realize high logic levels. because the ds2482 uses scl only as input (no clock stretching) the master can drive scl either through an open- drain/collector output with a pullup resistor or a push-pull output. pullup resistor r p sizing according to the i2c specification, a slave device must be able to sink at least 3ma at a v ol of 0.4v. this dc condition determines the minimum value of the pullup resistor: rpmin = (v cc - 0.4v)/3ma. with an operating voltage of 5.5v, the minimum value for the pullup resistor is 1.7k  . the "minimum rp" line in figure 12 shows how the minimum pullup resistor changes with the operating voltage. for i2c systems, the rise time and fall time are measured from 30% to 70% of the pullup voltage. the maximum bus capacitance c b is 400pf. the maximum rise time at standard speed must not exceed 1000ns and 300ns at fast speed. assuming maximum rise time, the maximum resistor value at any given capacitance c b is calculated as: rpmaxs = 1000ns/(c b *ln(7/3)) (standard speed) and rpmaxf = 300ns/(c b *ln(7/3)) (fast speed). for a bus
ds2482-800: eight-channel 1-wire master 22 of 22 capacitance of 400pf the maximum pullup resistor values are 2.95k  at standard speed and 885  at fast speed. a value between of 1.7k  and 2.95k  meets all requirements at standard speed. since a 885  pullup resistor, as would be required to meet the rise time specification at fast speed and 400pf bus capacitance, is lower than rpmin at 5.5v, a different approach is necessary. the "max. load?" line in figure 12 is generated by first calculating the minimum pullup resistor at any given operating voltage ("minimum rp" line) and then calculating the respective bus capacitance that yields a rise time of 300ns. only for pullup voltages of 3v and lower can the maximum permissible bus capacitance of 400pf be maintained. a reduced bus capacitance of 300pf is acceptable for pullup voltages of 4v and lower. for fast speed operation at any pullup voltage, the bus capacitance must not exceed 200pf. the corresponding pullup resistor value at the voltage is indicated by the "minimum rp" line. figure 12. i2c fast speed pullup resistor selection chart 0 400 800 1200 1600 2000 12345 pull-up voltage minimum rp (ohms) 0 100 200 300 400 500 load (pf) "minimum rp" max. load at min. rp fast mode package information (the package drawing(s) in this data sheet may not reflect the most current specifications. for the latest package outline info rmation, go to www.maxim-ic.com/dallaspackinfo .)


▲Up To Search▲   

 
Price & Availability of DS2482S-800

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X